


        /*var headSwiper = new Swiper ('.headSwiper', {
            //循环模式选项
            loop: true,
            //自动轮播
            autoplay:true,
            //手动滑动后持续轮播
            autoplay: {
                disableOnInteraction: false,
            },
            // 分页器
            pagination: {
                el: '.head-pagination',
                clickable: true,
            }
          });*/

          var caseSwiper = new Swiper ('.caseSwiper', {
            //循环模式选项
            loop: true,
            //自动轮播
            autoplay:true,
            //手动滑动后持续轮播
            autoplay: {
                disableOnInteraction: false,
            },
            // 分页器
            pagination: {
                el: '.case-pagination',
                clickable: true,
            },
            navigation: {
                nextEl: '.case-next',
                prevEl: '.case-prev',
            },
          })

          

          var changeClass = null;
          var more = null;
         
          
          $(document).ready(function(){
                
                $('.case .swiper .btns .case-prev').click(function(){
                    $('.case .caseSwiper .case-prev')[0].click();
                })
                $('.case .swiper .btns .case-next').click(function(){
                    $('.case .caseSwiper .case-next')[0].click();
                })
                for(var p = 0;p < $('.case .swiper .btns .swiper-pagination-bullet').length;p++){
                    $('.case .swiper .btns .swiper-pagination-bullet')[p].index = p;
                }
                $('.case .swiper .btns .swiper-pagination-bullet').click(function(){
                    var ind = $(this)[0].index;
                    console.log(ind);
                    $('.case .swiper .caseSwiper .swiper-pagination-bullet')[ind].click();
                })
                
                changeClass = setInterval(function(){
                    var char = $('.caseSwiper .swiper-pagination-bullet-active')[0].getAttribute('aria-label');
                    var ind = Number(char.substr(char.length - 1,1)) - 1;
                    if($('.case .swiper .btns .swiper-pagination-bullet-active')[0].index == ind) return false;   
                    $('.case .swiper .btns .swiper-pagination-bullet').removeClass('swiper-pagination-bullet-active');
                    $('.case .swiper .btns .swiper-pagination-bullet')[ind].className = $('.caseSwiper .swiper-pagination-bullet')[ind].className + ' swiper-pagination-bullet-active';
                },10);
            
                
               

                
          })